package com.lagou.edu.feign;

import com.lagou.edu.pojo.LagouToken;
import com.lagou.edu.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author 梅松
 * @Date 2021/10/23 12:49
 */
@FeignClient(value = "lagou-service-user",path = "/user")
public interface UserFeign {

    @RequestMapping("/info/{token}")
    public Result<LagouToken> info(@PathVariable String token);
}
